package org.jivesoftware.smackx.pubsub;

import java.util.Collections;
import java.util.List;

public abstract class SubscriptionEvent extends NodeEvent
{
  private List<String> subIds = Collections.EMPTY_LIST;

  protected SubscriptionEvent(String paramString)
  {
    super(paramString);
  }

  protected SubscriptionEvent(String paramString, List<String> paramList)
  {
    super(paramString);
    if (paramList != null)
      this.subIds = paramList;
  }

  public List<String> getSubscriptions()
  {
    return Collections.unmodifiableList(this.subIds);
  }

  protected void setSubscriptions(List<String> paramList)
  {
    if (paramList != null)
      this.subIds = paramList;
  }
}